 <%@page import="org.eclipse.jdt.internal.compiler.util.Util.Displayable"%>
<%@page import="com.mysql.fabric.xmlrpc.base.Data"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <%@ page import="fy.bean.*,java.util.*,java.io.*" %>  
  //注释
<%
request.setCharacterEncoding("utf-8");
String picture = request.getParameter("picture");
String category = request.getParameter("category");
String title = request.getParameter("title");
int homepage = Integer.parseInt(request.getParameter("homepage")); 
String link = request.getParameter("link");
String categoryname = request.getParameter("categoryname");

/* int display = Integer.parseInt(request.getParameter("display"));  */
 PictureBean picture1 = new PictureBean();
if(picture1.doAdd(picture,title,category,homepage,link,categoryname)){
	
}else{
	response.setCharacterEncoding("utf-8");
	PrintWriter pout = response.getWriter();
	pout.print("<script>alert('错误'); window.location='../addadmin.jsp' </script>");
	pout.flush();
	pout.close();
	//response.sendRedirect("login.html");
};

%>   